//
//  ACArticleFontSelectView.h
//  acfun_video
//
//  Created by user on 11/23/15.
//  Copyright © 2015 wang. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, ACArticleFontType) {
    ACArticleSmallFont,
    ACArticleNormalFont,
    ACArticleLittleLargeFont,
    ACArticleLargeFont
};
///根据font类型获取对应的title
extern NSString *ACArticleFontTitle(ACArticleFontType type);
///根据魔种类型获取font的scale
extern CGFloat  ACArticleFontScale(ACArticleFontType type);
///获取当前设置中font的scale
extern CGFloat  ACArticleFontScaleInSetting();
/////获取当前设置scale到目标scale的计算
//extern CGFloat  ACArticleFontTargetFontTypeFromCurrentFontType(ACArticleFontType targetFontType);
///获取当前设置scale到目标scale的计算
extern CGFloat  ACArticleFontTargetFontTypeFromCurrentFontType(ACArticleFontType targetFontType,ACArticleFontType currentFontType);
///字体的个数
extern NSInteger ACArticleTypesCount();

@interface ACArticleSettingAlertView : UIView
/*!
 *  文章详情设置alert界面,界面比较固定,直接调用init返回
 */
- (instancetype)init;
+ (instancetype)articleSettingView;
/*!
 *  显示alertview
 */
//- (void)show;
/*!
 *  隐藏alertView
 */
//- (void)dismiss;
/*!
 *  点击暗色背景消失的回调
 */
//- (void)didDismissOnDimBackground:(dispatch_block_t)action;
/*!
 *  选择确认后的回调
 */
//- (void)didConfirmAction:(dispatch_block_t)action;
/*!
 *  切换fontAction的事件
 */
- (void)didChangeFontAction:(void(^)(CGFloat))action;

@end


@interface ACArticleHorizonSelectionView : UIView

/*!
 *  返回一个水平选择的视图
 *
 *  @param frame              视图的frame
 *  @param selections         titles,NSString类型
 *  @param defaultSelectIndex 默认的选项
 *
 *  @return 返回横向的选择器
 */
- (instancetype)initWithFrame:(CGRect)frame selections:(NSArray<NSString *>*)selections defaultSelectIndex:(NSInteger)defaultSelectIndex;
/*!
 *  切换fontAction的事件
 */
- (void)didChangeFontAction:(void(^)(CGFloat))action;

@end